package cn.zkw.service.impl;

import cn.zkw.mapping.NoticeDao;
import cn.zkw.service.NoticeService;
import cn.zkw.vo.Notice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class NoticeServieImpl implements NoticeService {
    @Autowired
    NoticeDao noticeDao;

    @Override
    public Integer addNotice(Notice notice) {
        return noticeDao.addNotice(notice);
    }

    @Override
    public List<Notice> selectAll() {
        return noticeDao.selectAll();
    }

    @Override
    public Integer updateNotice(Notice notice) {
        return noticeDao.updateNotice(notice);
    }

    @Override
    public Integer deleteNotice(Integer notice_id) {
        return noticeDao.deleteNotice(notice_id);
    }

    @Override
    public Notice selectById(Integer notice_id) {
        return noticeDao.selectById(notice_id);
    }
}
